x=input("请输入一行字符：")
sum1,sum2,sum3=0,0,0
for i in x:
    if(i.isalpha()):
        sum1+=1
    if (i.isdigit()):
        sum2 += 1
    if (i.isspace()):
        sum3 += 1
print("该行字符中有{}个字母，{}个数字，{}个空格".format(sum1,sum2,sum3))